import 'package:liuxlcommon/view/extension_widget.dart';
import 'package:love_newf/value/app_const.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:liuxlcommon/view/my_style.dart';
import 'package:love_newf/value/app_colors.dart';

class AppLStyle {
  static double round = 12.w;

  static get dialogStyle => LStyle(
      backgroundColor: AppColors.bgViewColor,
      radius: 24.r,
      width: 335.w,
      padding: EdgeInsets.fromLTRB(17.5.w, 28.w, 17.5.w, 31.w));

  static get bottomDialogStyle => LStyle(
      decoration: BoxDecoration(
          color: AppColors.bgViewColor,
          borderRadius: BorderRadius.only(
              topLeft: Radius.circular(18.r),
              topRight: Radius.circular(18.r))));

  static LStyle get titleStyle => LStyle(
      fontSize: 21.sp, color: AppColors.textColor, fontWeight: FontWeight.w600);

  static LStyle get textStyle =>
      LStyle(fontSize: 14.sp, color: AppColors.textColor);

  static get text12Style => LStyle(fontSize: 12.sp, color: AppColors.textColor);

  static LStyle get textPrimaryStyle =>
      LStyle(fontSize: 14.sp, color: AppColors.primaryColor);

  static get textSecondStyle =>
      LStyle(fontSize: 12.sp, color: AppColors.textSecondColor);

  static LStyle get textBoldStyle => LStyle(
      fontSize: 14.sp, color: AppColors.textColor, fontWeight: FontWeight.w600);

  static get text2BoldStyle => LStyle(
      fontSize: 14.sp,
      color: AppColors.textSecondColor,
      fontWeight: FontWeight.w500);

  static get maskStyle => LStyle(
      width: double.infinity,
      height: double.infinity,
      backgroundColor: const Color(0x6F161722));
}

LStyle get inputSty => LStyle(
      flex: 1,
      fontSize: 15.sp,
      hintColor: AppColors.textSecondColor,
      alignment: Alignment.centerLeft,
      color: AppColors.textColor,
    );

get inputBoxCss => '''
padding:0 5px;
width: 345px;
height: 40px;''';

LStyle get rzBtnSty => LStyle(
    // gradient: LinearGradient(
    //     colors: [Color(0xFFF8D15D), Color(0xFFFD8330)],
    //     begin: Alignment.topCenter,
    //     end: Alignment.bottomCenter),
    alignment: Alignment.center,
    // borderWidth: 1.w,
    // borderColor: Color(0x24FFFFFF),
    css: '''
width: 317px;
height: 48px;
background: #FF4665;
border-radius: 37px 37px 37px 37px;
font-weight: 600;
font-size: 18px;
color: #FFFFFF;
    ''');
LStyle get btn2Sty => LStyle(
    gradient: const LinearGradient(
        colors: [Color(0xFFFF675E), Color(0xFFFFAC0C)],
        begin: Alignment.topCenter,
        end: Alignment.bottomCenter),
    alignment: Alignment.center,
    // borderWidth: 1.w,
    // borderColor: Color(0x24FFFFFF),
    css: '''
width: 317px;
height: 48px; 
border-radius: 37px 37px 37px 37px;
font-weight: 600;
font-size: 18px;
color: #FFFFFF;
    ''');
